<?php $form=$this->beginWidget('DwzActiveForm', array(
	'id'=>'content-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array(
		'class'=>'pageForm required-validate',
		'onsubmit'=>'return iframeCallback(this,dialogAjaxDone)',
		'enctype'=>'multipart/form-data',
	),
)); ?>

<script type="text/javascript">
/*<![CDATA[*/
	function content_form(form){
		<?php echo $_REQUEST['target']=='navTab'? 'navTab': '$.pdialog';?>.reload(form.action, $(form).serializeArray());
		return false;
	}
/*]]>*/
</script>
<style>.alert .alertInner .msg{max-height:600px;overflow:visible;}
.long_input {width:560px;}
</style>
	<div class="form pageFormContent" layoutH="55">
		<?php //echo CHtml::errorSummary($model); ?>

			<div class="row">
				<label>网站名称：</label>
				<input type="text" name="sitename" id="sitename" class="long_input" value="<?php echo $rs['sitename']?>">
			</div>
			<div class="row">
				<label>关键字：</label>
				<input type="text" name="keywords" id="keywords" class="long_input" value="<?php echo $rs['keywords']?>">
			</div>
			<div class="row">
				<label>网站描述：</label>
				<input type="text" name="description" id="description" class="long_input" value="<?php echo $rs['description']?>">
			</div>
			<div class="row">
				<label>版权信息：</label>
				<textarea name="copyright" class="long_input" ><?php echo $rs['copyright']?></textarea>
			</div>
			<div class="row">
				<label>网站状态：</label>
						开启<input type="radio" name="webstate" value="1" <?php if($rs['webstate']) echo "checked"?>>  &nbsp;
						关闭<input type="radio" name="webstate" value="0" <?php if(!$rs['webstate']) echo "checked"?>>
			</div>
			<div class="row">
				<label>关闭原因：</label>
				<textarea name="closereason" class="long_input" ><?php echo $rs['closereason']?></textarea>
			</div>
			
			<div class="divider"></div>
			<div class="row">
				<label>顶部地址：</label>
				<input type="text" name="address" id="address" class="long_input" value="<?php echo $rs['address']?>">
			</div>
			<div class="row">
				<label>顶部电话：</label>
				<input type="text" name="phone" id="phone" class="long_input" value="<?php echo $rs['phone']?>">
			</div>
			
			<div class="row">
				<label>电子邮箱：</label>
				<input type="text" name="email" id="email" class="long_input" value="<?php echo $rs['email']?>">
			</div>
			<div class="row">
				<label>地址信息：</label>
				<textarea name="footer_address" class="long_input" ><?php echo $rs['footer_address']?></textarea>
			</div>

			</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent">
				<button type="submit"><?php echo Yii::t('admin','Update'); ?>
</button>
			</div></div></li>
			<li>
				<div class="button"><div class="buttonContent">
					<button onclick="<?php echo $_REQUEST['target']=='navTab'? 'navTab.closeCurrentTab()': '$.pdialog.closeCurrent()';?>" type="Button"><?php echo Yii::t('admin','Cancel'); ?>
</button>
				</div></div>
			</li>
		</ul>
	</div>
<?php $this->endWidget(); ?>


